<form id="pagerForm" method="post" action="<?php echo SITE_URL . 'index.php?a=user';?>">
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="numPerPage" value="<?php echo $user_list['pager']->per_page;?>" />
    <input type="hidden" name="account" value="<?php echo $_input->post('account');?>" />
</form>


<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="<?php echo SITE_URL . 'index.php?a=user';?>" method="post">
	<div class="searchBar">
		<table class="searchContent">
			<tr>
				<td>
					用户名：<input type="text" name="account" value="<?php echo $_input->post('account');?>"/>
				</td>
                <td><div class="button"><div class="buttonContent"><button type="submit">搜索</button></div></div></td>
			</tr>
		</table>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="<?php echo SITE_URL . 'index.php?a=user&m=add';?>" target="dialog"  height="350"  rel="add_user"><span>添加</span></a></li>
            <li class="line">line</li>
			<li><a class="delete" href="<?php echo SITE_URL . 'index.php?a=user&m=del';?>&user_id={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
            <li class="line">line</li>
			<li><a class="edit" href="<?php echo SITE_URL . 'index.php?a=user&m=edit';?>&user_id={sid_user}" target="dialog" height="400" rel="edit_user"><span>修改</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="112">
		<thead>
			<tr>
				<th width="30" align="center">ID</th>
				<th width="50" align="center">用户名</th>
                <th width="100" align="center">角色</th>
				<th width="50" align="center">邮箱</th>
				<th width="50" align="center">联系电话</th>
				<th width="80" align="center">最后登录时间</th>
                <th width="50" align="center">最后登录IP</th>
                <th width="80" align="center">加入时间</th>
				<th width="160" align="center">操作</th>
			</tr>
		</thead>
		<tbody>
            <?php foreach($user_list['rs'] as $v){?>
            <tr target="sid_user" rel="<?php echo $v['user_id'];?>">
                <td><?php echo $v['user_id'];?></td>
                <td><?php echo $v['account'];?></td>
                <td><?php echo $v['role_names'];?></td>
                <td><?php echo $v['email'];?></td>
                <td><?php echo $v['tel'];?></td>
                <td><?php echo $v['last_time'];?></td>
                <td><?php echo $v['last_ip'];?></td>
                <td><?php echo $v['add_time'];?></td>
                <td>
                    <a href="<?php echo SITE_URL . 'index.php?a=user&m=setrole';?>&user_id=<?php echo $v['user_id'];?>" target="dialog" mask="true" title="<?php echo $v['user_name'];?>-设置角色" rel="set_user_role">设置角色</a> |
                    <a href="<?php echo SITE_URL . 'index.php?a=user&m=editrole';?>&user_id=<?php echo $v['user_id'];?>" target="dialog" mask="true" height="400" width="300" title="<?php echo $v['user_name'];?>-设置权限" rel="user_cate_tree">设置权限</a> |
                    <a href="<?php echo SITE_URL . 'index.php?a=user&m=edit';?>&user_id=<?php echo $v['user_id'];?>" target="dialog" height="400">编辑</a> |
                    <a href="<?php echo SITE_URL . 'index.php?a=user&m=del';?>&user_id=<?php echo $v['user_id'];?>" target="ajaxTodo" title="确定要删除吗?">删除</a>
                </td>
            </tr>
            <?php }?>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
            <?php
                $_pager_num_type = array(30,50,100);
            ?>
			<select class="combox" name="numPerPage" change="navTabPageBreak" param="numPerPage">
                <?php
                    foreach($_pager_num_type as $v){
                        echo '<option value="'.$v.'" '.($user_list['pager']->per_page == $v ? 'selected':'').'>'.$v.'</option>';
                    }
                ?>
			</select>
			<span>条，共<?php echo $user_list['pager']->getTotalCount();?>条</span>
		</div>
		
		<div class="pagination" targetType="navTab" totalCount="<?php echo $user_list['pager']->getTotalCount();?>" numPerPage="<?php echo $user_list['pager']->per_page;?>" pageNumShown="5" currentPage="<?php echo $user_list['pager']->curr_page;?>"></div>

	</div>
</div>
<!--通用处理js-->
<script type="text/javascript" src="<?php echo SITE_URL . 'theme/v1/js/admin_common.js'; ?>"></script>